<template>
  <div class="box">
    <el-container>
      <el-aside width="200px"
        ><el-col :span="24">
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            background-color="#ff6141"
            text-color="#fff"
            active-text-color="#ffd04b"
            unique-opened
            router
          >
            <el-menu-item index="/" >
              <i class="el-icon-location"></i>
              <span slot="title">首页</span>
            </el-menu-item>

            <el-submenu index="index/home">
              <template slot="title">
                <i class="el-icon-setting"></i>
                <span>系统设置</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="menu">菜单管理</el-menu-item>
                <el-menu-item index="role">角色管理</el-menu-item>
                <el-menu-item index="manage">管理员管理</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-s-tools"></i>
                <span>商城管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="cate">商品分类</el-menu-item>
                <el-menu-item index="specs">商品规格</el-menu-item>
                <el-menu-item index="goods">商品管理</el-menu-item>
                <el-menu-item index="member">会员管理</el-menu-item>
                <el-menu-item index="banner">轮播图管理</el-menu-item>
                <el-menu-item index="seckill">秒杀活动</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-col>
      </el-aside>
      <el-container>
        <el-header>Header</el-header>
        <el-main>
          <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item >首页</el-breadcrumb-item>
            <el-breadcrumb-item>{{ $route.meta.title }}</el-breadcrumb-item>
          </el-breadcrumb>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  components: {},
};
</script>

<style>
@import url("../../less/index.less");
.box {
  width: 100vw;
  height: 100vh;
}
.el-header,
.el-footer {
  background-color: #ff6141;
  color: #333;
  /* text-align: center; */
  /* line-height: 60px; */
}

.el-aside {
  background-color: #ff6141;
  color: #333;
  /* text-align: center; */
  /* line-height: 200px; */
  height: 100vh;
}

.el-main {
  background-color: #fff;
  color: #333;
  /* text-align: center; */
  /* line-height: 160px; */
}
</style>